package com.pigs.pigsordersystem.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

import javax.persistence.Table;

/**
 * @author Y.yang
 * @since 2020-03-14
 * 用户实体类
 * 继续基类 共有的属性
 *  id 、状态、创建时间、 名称
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ApiModel(value = "客户实体类")
@TableName("users")
public class UsersEntity extends BaseEntity {

    /**
     * 用户性别
     */
    private Integer userSex;

    /**
     * 用户密码
     */
    private String userPassword;

    @Override
    public String toString() {
        return "UsersEntity{" +
                "userId=" + super.getId() +
                ",userSex=" + userSex +
                ",userPassword=" + userPassword +
                ",userName=" + super.getName() +
                ",userCreateTime=" + super.getCreateTime()+
                ",userStatus=" + super.getStatus()+
                '}';
    }
}
